/**
 * 
 */
package de.oszimtcc.framework;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;
import de.oszimtcc.timetable.R;
import de.oszimtcc.timetableservices.NotificationHandler;
import de.oszimtcc.timetableservices.TimetableChangingService;


/**
 * @author reuter
 *
 */
public abstract class BaseService extends Service
{
    private static final int SERVICE_ID = R.string.app_name;
	private int request_code = 19051986;
	
	//public IBinder onBind(Class<T> pServiceClass) 
	public IBinder onBind(Intent intent) 
	{
		Toast.makeText(this, "onBindBaseService", Toast.LENGTH_SHORT).show();
	    return new BaseBinder(this);
	}
	
	@Override
    public boolean onUnbind(Intent intent)
    {
		Toast.makeText(this, "onUnbindService", Toast.LENGTH_SHORT).show();
	    return super.onUnbind(intent);
    }

	@Override
	public void onCreate() 
	{
		Toast.makeText(this, "onCreateService", Toast.LENGTH_SHORT).show();
	    super.onCreate();
	}

	@Override
	public void onDestroy()
	{
		Toast.makeText(this, "onDestroyService", Toast.LENGTH_SHORT).show();
	    super.onDestroy();
	}

	@Override
	public void onStart(Intent intent, int startId) 
	{
		Toast.makeText(this, "onStartService", Toast.LENGTH_SHORT).show();
	    super.onStart(intent, startId);
	}

    @Override
    public void onLowMemory()
    {
    	Toast.makeText(this, "onLowMemoryService", Toast.LENGTH_SHORT).show();
	    super.onLowMemory();
    }

	@Override
    public void onRebind(Intent intent)
    {
		Toast.makeText(this, "onRebindService", Toast.LENGTH_SHORT).show();
	    super.onRebind(intent);
    }

	@Override
    public int onStartCommand(Intent intent, int flags, int startId)
    {
		Toast.makeText(this, "onStartCommandService", Toast.LENGTH_SHORT).show();
	    return super.onStartCommand(intent, flags, startId);
    }
}
